<?php get_header(); ?>
<?php get_template_part('navi'); ?>

<div id="main">
<?php get_sidebar(); ?>

<h1 class="categorytitle">Search Results</h1>
		<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
         <div class="post">
            <div class="thumb"><?php the_post_thumbnail(array('300','200')); ?></div>

        <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>

            <div class="entry">   
 
                <p class="postmetadata">
                 Posted on <?php echo get_the_date(); ?> under <?php the_category(', ') ?> by
                 <?php the_author_posts_link(); ?>
                 with 
                <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?>
                <?php edit_post_link('Edit', ' &#124; ', ''); ?>
                </p>
 
            </div>
        </div> <!--end post -->
        <?php endwhile; ?>
       <?php endif; ?>
     <?php get_template_part('pagination'); ?>
         
     </div> <!--end content-->   



</div> <!--end main-->
<?php get_footer(); ?>
